import { request } from "@umijs/max";

//登录
export const login = (params: API.UserLogin) =>
  request("/sysUser/login", {
    method: "POST",
    data: params,
  });
//登出
export const logout = () =>
  request(`/sysUser/logout`, {
    method: "POST",
  });
